package com.situ.gym.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.situ.gym.pojo.Admin;
import com.baomidou.mybatisplus.extension.service.IService;
import com.situ.gym.pojo.query.AdminQuery;

import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Guan
 * @since 2025-08-28
 */
public interface IAdminService extends IService<Admin> {

    IPage<Admin> list(AdminQuery adminQuery);

    void deleteAll(Integer[] ids);

    Admin selectByName(String name);

    Map<String, Object> selectAssignedRole(Integer adminId);

    void assignRole(Long adminId, Long[] roleIds);

    Map<String, Object> selectAdminPermissionInfoById(Integer id);
}
